package com.keliangliu.demo.transaction;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
public class TransactionTest {


    @Transactional
    public void test() {
        System.out.println("事务");
    }

}
